<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的订单 | 超现实数码潮玩</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        /* 修复滚动条问题 */
        html {
            overflow-y: scroll;
        }

        body {
            width: 100vw;
            overflow-x: hidden;
            position: relative;
            background: #0a0a16;
            color: #fff;
            background-image:
                radial-gradient(circle at 10% 20%, rgba(255, 0, 128, 0.1) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 20%),
                radial-gradient(circle at 50% 50%, rgba(128, 0, 255, 0.05) 0%, transparent 30%);
            min-height: 100vh;
        }

        /* 迷幻背景动画 */
        .psychedelic-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.7;
            background:
                radial-gradient(circle at 20% 80%, rgba(255, 0, 128, 0.3) 0%, transparent 25%),
                radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.3) 0%, transparent 25%),
                radial-gradient(circle at 40% 40%, rgba(128, 0, 255, 0.2) 0%, transparent 25%);
            animation: bgShift 15s infinite alternate;
        }

        @keyframes bgShift {
            0% {
                transform: scale(1) rotate(0deg);
            }

            100% {
                transform: scale(1.1) rotate(3deg);
            }
        }

        /* 导航栏 */
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 5%;
            /* position: fixed;
            top: 0;
            left: 0;
            z-index: 1000; */
            width: 100%;
            background: rgba(10, 10, 22, 0.9);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .logo {
            font-size: 28px;
            font-weight: 800;
            background: linear-gradient(45deg, #ff00cc, #3333ff);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0 10px rgba(255, 0, 204, 0.5);
        }

        .nav-links {
            display: flex;
            gap: 30px;
        }

        .nav-links a {
            color: #fff;
            text-decoration: none;
            font-weight: 600;
            position: relative;
            padding: 5px 0;
            transition: all 0.3s;
        }

        .nav-links a.active {
            color: #ff00cc;
        }

        .nav-links a.active:after {
            width: 100%;
        }

        .nav-links a:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #ff00cc, #3333ff);
            transition: width 0.3s;
        }

        .nav-links a:hover {
            color: #ff00cc;
        }

        .nav-links a:hover:after {
            width: 100%;
        }

        .user-menu {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .cart-icon {
            position: relative;
        }

        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background: linear-gradient(45deg, #ff00cc, #3333ff);
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: bold;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(45deg, #ff00cc, #3333ff);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .user-avatar i {
            font-size: 20px;
            color: white;
        }

        /* 主标题区域 */
        .hero {
            text-align: center;
            padding: 100px 5% 80px;
            position: relative;
        }

        .hero h1 {
            font-size: 4rem;
            margin-bottom: 20px;
            background: linear-gradient(45deg, #ff00cc, #00ccff, #ffcc00);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0 20px rgba(255, 0, 204, 0.5);
            animation: titleGlow 3s infinite alternate;
        }

        @keyframes titleGlow {
            0% {
                text-shadow: 0 0 20px rgba(255, 0, 204, 0.5);
            }

            100% {
                text-shadow: 0 0 30px rgba(0, 204, 255, 0.7), 0 0 40px rgba(255, 204, 0, 0.5);
            }
        }

        .hero p {
            font-size: 1.3rem;
            max-width: 800px;
            margin: 0 auto 40px;
            color: #ccccff;
            line-height: 1.6;
        }

        /* 订单筛选区域 */
        .order-filters {
            padding: 30px 5%;
            background: rgba(10, 10, 30, 0.5);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .filter-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .search-box {
            position: relative;
            flex: 1;
            min-width: 300px;
        }

        .search-box input {
            width: 100%;
            padding: 12px 20px;
            background: rgba(20, 20, 40, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 50px;
            color: #fff;
            font-size: 1rem;
            outline: none;
            transition: all 0.3s;
        }

        .search-box input:focus {
            border-color: #ff00cc;
            box-shadow: 0 0 10px rgba(255, 0, 204, 0.5);
        }

        .search-box i {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #ccccff;
        }

        .filter-options {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 10px 20px;
            background: rgba(20, 20, 40, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 50px;
            color: #ccccff;
            cursor: pointer;
            transition: background 0.3s, color 0.3s;
            /* 只过渡背景和颜色 */
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: linear-gradient(45deg, #ff00cc, #3333ff);
            color: white;
            border: 1px solid #262626;
        }

        /* 订单列表区域 */
        .orders {
            padding: 80px 5%;
            position: relative;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 50px;
            background: linear-gradient(45deg, #00ccff, #ffcc00);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            position: relative;
        }

        .section-title:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: linear-gradient(90deg, #ff00cc, #3333ff);
        }

        .order-list {
            max-width: 1200px;
            margin: 0 auto;
        }

        .order-card {
            background: rgba(20, 20, 40, 0.7);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s;
        }

        .order-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(255, 0, 204, 0.3);
        }

        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .order-info h3 {
            font-size: 1.5rem;
            margin-bottom: 5px;
            color: #ffcc00;
        }

        .order-date {
            color: #ccccff;
            font-size: 0.9rem;
        }

        .order-status {
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .status-completed {
            background: rgba(0, 204, 136, 0.2);
            color: #00cc88;
            border: 1px solid rgba(0, 204, 136, 0.3);
        }

        .status-processing {
            background: rgba(255, 204, 0, 0.2);
            color: #ffcc00;
            border: 1px solid rgba(255, 204, 0, 0.3);
        }

        .status-shipped {
            background: rgba(0, 204, 255, 0.2);
            color: #00ccff;
            border: 1px solid rgba(0, 204, 255, 0.3);
        }

        .status-pending {
            background: rgba(255, 102, 0, 0.2);
            color: #ff6600;
            border: 1px solid rgba(255, 102, 0, 0.3);
        }

        .order-items {
            margin-bottom: 20px;
        }

        .order-item {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }

        .item-image {
            width: 60px;
            height: 60px;
            background: linear-gradient(45deg, #ff00cc, #3333ff);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            flex-shrink: 0;
        }

        .item-image i {
            font-size: 24px;
            color: white;
            opacity: 0.8;
        }

        .item-details {
            flex: 1;
        }

        .item-details h4 {
            font-size: 1rem;
            margin-bottom: 5px;
            color: #ffcc00;
        }

        .item-price {
            font-size: 0.9rem;
            color: #00ccff;
        }

        .item-quantity {
            font-size: 0.9rem;
            color: #ccccff;
        }

        .order-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .order-total {
            font-size: 1.3rem;
            font-weight: 700;
            color: #00ccff;
        }

        .order-actions {
            display: flex;
            gap: 10px;
        }

        .action-btn {
            padding: 8px 15px;
            border-radius: 5px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            font-size: 0.9rem;
        }

        .btn-primary {
            background: linear-gradient(45deg, #ff00cc, #3333ff);
            color: white;
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: #ccccff;
        }

        .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 3px 10px rgba(255, 0, 204, 0.3);
        }

        /* 空状态 */
        .empty-orders {
            text-align: center;
            padding: 60px 20px;
        }

        .empty-orders i {
            font-size: 80px;
            color: #ccccff;
            margin-bottom: 20px;
            opacity: 0.5;
        }

        .empty-orders h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: #ffcc00;
        }

        .empty-orders p {
            color: #ccccff;
            margin-bottom: 30px;
        }

        .empty-orders .btn {
            display: inline-block;
            padding: 12px 30px;
            background: linear-gradient(45deg, #ff00cc, #3333ff);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s;
        }

        .empty-orders .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(255, 0, 204, 0.3);
        }

        /* 超现实元素 */
        .surreal-elements {
            position: absolute;
            pointer-events: none;
            z-index: 1;
        }

        .floating-shape {
            position: absolute;
            border-radius: 50%;
            opacity: 0.7;
            animation: float 6s infinite ease-in-out;
        }

        .shape-1 {
            width: 100px;
            height: 100px;
            background: radial-gradient(circle, #ff00cc, transparent);
            top: 10%;
            left: 5%;
            animation-delay: 0s;
        }

        .shape-2 {
            width: 150px;
            height: 150px;
            background: radial-gradient(circle, #00ccff, transparent);
            top: 60%;
            right: 10%;
            animation-delay: 2s;
        }

        .shape-3 {
            width: 80px;
            height: 80px;
            background: radial-gradient(circle, #ffcc00, transparent);
            bottom: 20%;
            left: 15%;
            animation-delay: 4s;
        }

        @keyframes float {
            0% {
                transform: translateY(0) rotate(0deg);
            }

            50% {
                transform: translateY(-20px) rotate(180deg);
            }

            100% {
                transform: translateY(0) rotate(360deg);
            }
        }

        /* 扭曲网格 */
        .distorted-grid {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                linear-gradient(rgba(255, 0, 204, 0.1) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 0, 204, 0.1) 1px, transparent 1px);
            background-size: 50px 50px;
            animation: gridDistort 10s infinite linear;
            /* 以顶部为中心变换 */
            transform-origin: center top;
            z-index: -1;
        }

        @keyframes gridDistort {
            0% {
                transform: perspective(500px) rotateX(60deg) scale(1);
            }

            50% {
                transform: perspective(500px) rotateX(60deg) scale(1.2) skew(5deg, 5deg);
            }

            100% {
                transform: perspective(500px) rotateX(60deg) scale(1);
            }
        }

        /* 页脚 */
        footer {
            background: rgba(10, 10, 30, 0.9);
            padding: 50px 5% 30px;
            margin-top: 100px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 40px;
        }

        .footer-section {
            flex: 1;
            min-width: 250px;
        }

        .footer-section h3 {
            font-size: 1.3rem;
            margin-bottom: 20px;
            color: #ffcc00;
        }

        .footer-section p,
        .footer-section a {
            color: #ccccff;
            margin-bottom: 10px;
            display: block;
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-section a:hover {
            color: #ff00cc;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 15px;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: linear-gradient(45deg, #ff00cc, #3333ff);
            border-radius: 50%;
            color: white;
            font-size: 1.2rem;
            transition: all 0.3s;
        }

        .social-links a:hover {
            transform: translateY(-5px);
        }

        .copyright {
            text-align: center;
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #8888cc;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.5rem;
            }

            .nav-links {
                display: none;
            }

            .filter-container {
                flex-direction: column;
            }

            .search-box {
                width: 100%;
            }

            .order-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .order-footer {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }

            .order-actions {
                width: 100%;
                justify-content: space-between;
            }
        }
    </style>
</head>

<body>
    <!-- 迷幻背景 -->
    <div class="psychedelic-bg"></div>

    <!-- 超现实浮动元素 -->
    <div class="surreal-elements">
        <div class="floating-shape shape-1"></div>
        <div class="floating-shape shape-2"></div>
        <div class="floating-shape shape-3"></div>
    </div>

    <!-- 扭曲网格 -->
    <div class="distorted-grid"></div>

    <!-- 导航栏 -->
    <nav>
        <div class="logo">PSYCHEDELIC TOYS</div>
        <div class="nav-links">
            <a href="index_2.html">首页</a>
            <a href="toys.html">潮玩</a>
            <a href="artists.html">艺术家</a>
            <a href="exhibitions.html">展览</a>
            <a href="news_list.html">新闻资讯</a>
            <a href="about.html">关于我们</a>
            <a href="orders.html" class="active">我的订单</a>
        </div>
        <div class="user-menu">
            <div class="cart-icon">
                <a href="cart.html"><i class="fas fa-shopping-cart"></i></a>
                <span class="cart-count">3</span>
            </div>
            <div class="user-avatar">
                <i class="fas fa-user"></i>
            </div>
        </div>
    </nav>

    <!-- 主标题区域 -->
    <section class="hero">
        <h1>我的订单</h1>
        <p>查看您的超现实数字潮玩购买记录和订单状态</p>
    </section>

    <!-- 订单筛选区域 -->
    <section class="order-filters">
        <div class="filter-container">
            <div class="search-box">
                <input type="text" placeholder="搜索订单...">
                <i class="fas fa-search"></i>
            </div>
            <div class="filter-options">
                <div class="filter-btn active">全部订单</div>
                <div class="filter-btn">待付款</div>
                <div class="filter-btn">处理中</div>
                <div class="filter-btn">已发货</div>
                <div class="filter-btn">已完成</div>
            </div>
        </div>
    </section>

    <!-- 订单列表区域 -->
    <section class="orders">
        <h2 class="section-title">订单历史</h2>
        <div class="order-list" id="orderList">
            <!-- 订单将通过JavaScript动态生成 -->
        </div>
    </section>

    <!-- 页脚 -->
    <footer>
        <div class="footer-content">
            <div class="footer-section">
                <h3>关于我们</h3>
                <p>我们是一家专注于超现实数字艺术品的创作与发行平台，致力于将前沿科技与艺术创新相结合。</p>
            </div>

            <div class="footer-section">
                <h3>快速链接</h3>
                <a href="index.html">首页</a>
                <a href="toys.html">潮玩</a>
                <a href="artists.html">艺术家</a>
                <a href="exhibitions.html">展览</a>
                <a href="about.html">关于我们</a>
            </div>

            <div class="footer-section">
                <h3>联系我们</h3>
                <p>邮箱: contact@psychedelictoys.com</p>
                <p>电话: +86 123 4567 8900</p>
                <div class="social-links">
                    <a href="#"><i class="fab fa-weibo"></i></a>
                    <a href="#"><i class="fab fa-weixin"></i></a>
                    <a href="#"><i class="fab fa-instagram"></i></a>
                    <a href="#"><i class="fab fa-discord"></i></a>
                </div>
            </div>
        </div>

        <div class="copyright">
            <p>&copy; 2023 超现实数码潮玩 | 保留所有权利</p>
        </div>
    </footer>

    <script>
        // 订单数据
        const orders = [
            {
                id: "PSY20231201567",
                date: "2023年12月1日",
                status: "completed",
                statusText: "已完成",
                total: 5446,
                items: [
                    { name: "量子机械兽", price: 1299, quantity: 1, icon: "fas fa-robot" },
                    { name: "赛博龙族", price: 2499, quantity: 1, icon: "fas fa-dragon" },
                    { name: "幻影猫", price: 899, quantity: 2, icon: "fas fa-cat" }
                ]
            },
            {
                id: "PSY20231128542",
                date: "2023年11月28日",
                status: "shipped",
                statusText: "已发货",
                total: 1899,
                items: [
                    { name: "机械蜘蛛", price: 1899, quantity: 1, icon: "fas fa-spider" }
                ]
            },
            {
                id: "PSY20231120321",
                date: "2023年11月20日",
                status: "processing",
                statusText: "处理中",
                total: 699,
                items: [
                    { name: "数据鱼群", price: 699, quantity: 1, icon: "fas fa-fish" }
                ]
            },
            {
                id: "PSY20231115489",
                date: "2023年11月15日",
                status: "completed",
                statusText: "已完成",
                total: 1599,
                items: [
                    { name: "光子幽灵", price: 1599, quantity: 1, icon: "fas fa-ghost" }
                ]
            }
        ];

        // 渲染订单列表
        function renderOrders() {
            const orderListContainer = document.getElementById('orderList');

            if (orders.length === 0) {
                orderListContainer.innerHTML = `
                    <div class="empty-orders">
                        <i class="fas fa-box-open"></i>
                        <h3>暂无订单</h3>
                        <p>您还没有购买过任何超现实数字潮玩，快去挑选您喜欢的作品吧！</p>
                        <a href="toys.html" class="btn">浏览潮玩</a>
                    </div>
                `;
                return;
            }

            orderListContainer.innerHTML = '';

            orders.forEach(order => {
                const orderElement = document.createElement('div');
                orderElement.className = 'order-card';
                orderElement.innerHTML = `
                    <div class="order-header">
                        <div class="order-info">
                            <h3>订单号: ${order.id}</h3>
                            <div class="order-date">下单时间: ${order.date}</div>
                        </div>
                        <div class="order-status status-${order.status}">${order.statusText}</div>
                    </div>
                    <div class="order-items">
                        ${order.items.map(item => `
                            <div class="order-item">
                                <div class="item-image">
                                    <i class="${item.icon}"></i>
                                </div>
                                <div class="item-details">
                                    <h4>${item.name}</h4>
                                    <div class="item-price">¥ ${item.price}</div>
                                </div>
                                <div class="item-quantity">数量: ${item.quantity}</div>
                            </div>
                        `).join('')}
                    </div>
                    <div class="order-footer">
                        <div class="order-total">总计: ¥ ${order.total}</div>
                        <div class="order-actions">
                            <button class="action-btn btn-primary" onclick="window.location.href='order-detail.html?id=${order.id}'">查看详情</button>
                            ${order.status === 'completed' ? '<button class="action-btn btn-secondary">再次购买</button>' : ''}
                            ${order.status === 'shipped' ? '<button class="action-btn btn-secondary">跟踪物流</button>' : ''}
                        </div>
                    </div>
                `;
                orderListContainer.appendChild(orderElement);
            });
        }

        // 初始化页面
        document.addEventListener('DOMContentLoaded', function () {
            renderOrders();

            // 筛选功能
            const filterBtns = document.querySelectorAll('.filter-btn');
            filterBtns.forEach(btn => {
                btn.addEventListener('click', function () {
                    filterBtns.forEach(b => b.classList.remove('active'));
                    this.classList.add('active');

                    // 这里可以添加实际的筛选逻辑
                    // 目前只是演示效果
                });
            });

            // 搜索功能
            const searchInput = document.querySelector('.search-box input');
            searchInput.addEventListener('input', function (e) {
                const searchTerm = e.target.value.toLowerCase();
                // 这里可以添加实际的搜索逻辑
            });
        });

        // 鼠标跟随效果
        document.addEventListener('mousemove', function (e) {
            const shapes = document.querySelectorAll('.floating-shape');
            const x = e.clientX / window.innerWidth;
            const y = e.clientY / window.innerHeight;

            shapes.forEach((shape, index) => {
                const speed = (index + 1) * 0.5;
                const xMove = (x - 0.5) * speed * 50;
                const yMove = (y - 0.5) * speed * 50;

                shape.style.transform = `translate(${xMove}px, ${yMove}px)`;
            });
        });

        // 标题闪烁效果
        const title = document.querySelector('.hero h1');
        setInterval(() => {
            title.style.textShadow = `0 0 ${20 + Math.random() * 20}px rgba(${Math.random() * 255}, ${Math.random() * 255}, ${Math.random() * 255}, 0.7)`;
        }, 2000);
    </script>
</body>

</html>